package com.trailwalker.javafx.utils.system;

import javafx.application.Platform;

/**
 * @author Trailwalker
 * @create 2021-08-31 16:34
 * @des
 */
public class ApplicationUtils {

    private static final String TAG = ApplicationUtils.class.getSimpleName();

    /**
     * 退出系统ThreadUtils
     */
    public static void exit() {
        Platform.exit();
    }

    /**
     * 设置窗口关闭后是否关闭应用
     *
     * @param implicitExit false:不关闭应用 需调用exit()来关闭应用
     */
    public static void setImplicitExit(boolean implicitExit) {
        Platform.setImplicitExit(implicitExit);
    }
}
